home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15103 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: in2.uu.net!demos!coin!edisoft!newsserv
  2. From: Igor Kouznetsov  <igor@bnkdp.khabarovsk.su>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: C compiler Error on EXEC SQL
  5. Date: 17 Apr 1996 15:32:44 +1100
  6. Organization: unknown
  7. Sender: newsserv@edisoft.ru
  8. Distribution: world
  9. Message-ID: <199604171848.IAA02952@ss20.bnkdp.khabarovsk.su>
  10. Reply-To: igor@bnkdp.khabarovsk.su
  11. X-Return-Path: cent.edisoft.ru!bnkdp.khabarovsk.su!ss20.bnkdp.khabarovsk.su!bnkdp!bnkdp.khabarovsk.su!ss20.bnkdp.khabarovsk.su!igor
  12.  
  13. In article <4kkej2$3ta@news.cc.utah.edu> dpncc@utah.state.ut.us (NCC Network) wrote:
  14.  
  15. [...]
  16. > error generated by HP UNIX. What is the EXEC SQL instruction ? It doesn't seem
  17. > to be a standard C. 
  18. [...]
  19.  
  20. No, that's certainly not a standard C. This is just a code working with some RDBMS. 
  21. 'exec sql' is instruction for the embedded sql preprocessor. You should run the
  22. preprocessor came with your database system. It is possibly called 'esqlc', though
  23. its name may differ from system to system (I can't determine what RDBMS you use,
  24. so see your docs, something like 'Embedded SQL Guide').
  25. Anyway, after this code preprocessed, it become a normal C code which should be compiled with 
  26. your compiler and than linked with RDBMS library (system-dependent, also) to produce
  27. an executable.
  28.  
  29. Good luck.
  30.  
  31. Igor.
  32.  
  33.